toX509Certificate

Returns an Optional that contains an X.509 certificate initialized with the data stored in the derEncodedValue array of bytes or an empty Optional if the CertificateException was thrown while restoring certificate from its DER-encoded bytes array.

Since

7.1